package com.itheima.web.controller;

import com.itheima.entity.TbSkuClass;
import com.itheima.service.TbSkuClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: LiJinLong
 * @Date: 2022/8/28 21:14
 * @Description:
 */
@RestController
@RequestMapping("/api/vm-service/skuClass")
public class SkuClassController {
    @Autowired
    TbSkuClassService tbSkuClassService;

    /**
     * 新增商品类型
     *
     * @return
     */
    @PostMapping
    public TbSkuClass add(@RequestBody TbSkuClass tbSkuClass) {
        return tbSkuClassService.addStuClass(tbSkuClass);
    }
}
